import Conf from "@/config";
/**
 * 兼容多个后端域名
 */
let { base } = Conf.domain;

export default {
  /**
   * 基础
   */
  getAppConfig: base + '/app/config',

  /**
   * 登录
   */
  sendVerifySms: base + '/app/sms/sendVerifySms',
  registerOrLogin: base + '/app/auth/registerOrLogin',
  logout: base + '/app/auth/logout',
  /**
   * 用户信息
   */
  getUserInfo: base + '/app/user/info',
  /**
   * 产品信息
   */
  getProductInfo: base + '/app/user/home',
  getProductTrial: base + '/app/product/trial',
  /**
   * kyc
   */
  getDictProvince: base + '/app/sys/province', // 省
  getDictByParam: base + '/app/dict/',


  saveKycPersonal: base + '/app/kyc/personal', // 1
  saveKycFamily: base + '/app/kyc/family', // 2
  saveKycExtendInfo: base + '/app/kyc/extendInfo', // 

  initFullIDWidget: base + '/app/kyc/initFullIDWidget', // 4
  checkFullIDResult: base + '/app/kyc/checkFullIDResult',
  initPayAccountWidget: base + '/app/kyc/initPayAccountWidget', // 5
  checkPayAccountResult: base + '/app/kyc/checkPayAccountResult',

  getFinanceAccountList: base + '/app/kyc/getFinanceAccountList',
  savePayAccount: base + '/app/kyc/payAccount',
  getAuthorizationLink: base + '/app/kyc/authorization',
  /**
   * 订单信息
   */
  orderApply: base + '/app/order/apply',
  getCurrentOrderId: base + '/app/order/current',
  orderReady: base + '/app/order/ready',
  getOrderList: base + '/app/order/list',
  saveOrderRepay: base + '/app/order/repay/connect',
  /**
   * 帮助
   */
  saveHelpInfo: base + '/app/help/info',
};
